package com.liang.countincement;

public class CountThread implements Runnable{
//    private AtomicInteger ac = new AtomicInteger(0);
    private int count =0;

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
//            int count = ac.incrementAndGet();
            count++;
            System.out.println("已经送了"+count+"个冰激凌");
        }
    }
}
